<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <title>JS调试功能演示</title>
    <style>
        .container {
            margin: 20px;
            padding: 15px;
            border: 1px solid #ddd;
            border-radius: 5px;
        }

        .result {
            margin-top: 10px;
            padding: 10px;
            background-color: #f5f5f5;
        }
    </style>
</head>

<body>
    <h1>JavaScript 调试功能演示</h1>


    <script>
        // 这是一段没什么意义的代码，只是为了演示调试功能
        function getTime() {
            return Date.now()
        }
        const x = '这是一个闭包变量'
        function foo() {
            let result = 0
            for (let i = 0; i < 10; i++) {
                result += getTime()
            }
            result = bar(result)
            result += x
            return result
        }

        function bar(result) {
            result += '%%'
            return result
        }
        foo()

        
        
    </script>
</body>

</html>